<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEticketOnlineTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('eticket-online', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('activity_id');
            $table->integer('start_date')->nullable()->comment('开抢时间');
            $table->integer('end_date')->nullable()->comment('截止抢票时间');
            $table->integer('billing_date')->nullable()->comment('开票时间');
            $table->tinyInteger('other_school')->default(0)->comment('是否允许其他学校抢票');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('eticket-online');
    }
}
